﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace System
{
    public static partial class ObjectExtension
    {
        /// <summary>
        /// 返回指定对象的 System.TypeCode
        /// </summary>
        /// <param name="value">An object that implements the  interface.</param>
        /// <returns>value 的 System.TypeCode，或者如果 value 为 null，则为 System.TypeCode.Empty。</returns>
        public static TypeCode GetTypeCode(this Object value)
        {
            return Convert.GetTypeCode(value);
        }
    }
}